<h3>Memberlist</h3>

<table border="0" class="memberlist">

	<tr>
		<th>Username</th>
		<th>Posts</th>
		<th>Joined</th>
		{admin}
		<th class="spacer"></th>
		<th class="admin">Delete</th>
		{/admin}
	</tr>

<? foreach($users as $user): ?>

	<tr>
		<td class="username"><?= anchor('member/profile/view/'.$user['id'],$user['username']) ?></td>
		<td class="posts"><?= $user['post_count'] ?></td>
		<td class="joined"><?= date('m/d/Y', $user['joined']) ?></td>
		<td class="spacer"></td>
		{admin}
		<td class="delete"><?= anchor('member/admin/delete/'.$user['id'], 'X', array('class' => 'admin')) ?></td>
		{/admin}
	</tr>

<? endforeach; ?>

</table>
{admin}
<?= anchor('member/admin/add_user', 'New User', array('class' => 'admin'))?>
{/admin}

{admin_box}
{/admin_box}